import './assets/main.css'
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import request from './utils/request'

const app = createApp(App)

// 将 Axios 添加到 Vue 实例的原型链上，这样在组件中就可以通过 this.$axios 使用
app.config.globalProperties.$axios = axios

// 将 request 添加到 Vue 实例的原型链上，这样在组件中就可以通过 this.$request 使用
app.config.globalProperties.$request = request

app.use(router)
app.use(ElementPlus)
app.mount('#app')
